package net.ikenway.springboot.demo.Dao;

import net.ikenway.springboot.demo.Model.Entity.Order;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/10/2020
 */
public interface OrderRepository extends JpaRepository<Order, Long> {
    //    List<Order> findAllByUserUserId(Long userId);
    List<Order> findByStatusAndUserUserId(Order.Status status, Long userId);
}
